dataSource {
  pooled = true
  driverClassName = "org.hsqldb.jdbcDriver"
  username = "sa"
  password = ""

}
hibernate {
  cache.use_second_level_cache = true
  cache.use_query_cache = true
  cache.provider_class = 'com.opensymphony.oscache.hibernate.OSCacheProvider'
}
// environment specific settings
environments {
  development {
    dataSource {
      driverClassName = "com.mysql.jdbc.Driver"
      username = "kodak_admin"
      password = "lc541116"
      dialect = "org.hibernate.dialect.MySQL5Dialect"
      dbCreate = "create-drop" // one of 'create', 'create-drop','update'
//            url = "jdbc:hsqldb:mem:devDB"
      url = "jdbc:mysql://localhost:3306/kodakshop_dev?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8"
    }
  }
  test {
    dataSource {
      driverClassName = "com.mysql.jdbc.Driver"
      username = "kodak_admin"
      password = "lc541116"
      dialect = "org.hibernate.dialect.MySQL5Dialect"
      dbCreate = "update"
      url = "jdbc:mysql://localhost:3306/kodakshop_test?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8"
//            url = "jdbc:hsqldb:mem:testDb"
    }
  }
  production {
    dataSource {
      driverClassName = "com.mysql.jdbc.Driver"
      username = "kodak_admin"
      password = "lc541116"
      dialect = "org.hibernate.dialect.MySQL5Dialect"
      dbCreate = "update"
      url = "jdbc:mysql://localhost:3306/kodak_uat?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8"
//            url = "jdbc:hsqldb:file:prodDb;shutdown=true"
    }
  }
}